<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/10/21
  Time: 14:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    request.setCharacterEncoding("UTF-8");
    String name = request.getParameter("userName");
    out.println(name);

    String num1 = request.getParameter("num1");
    String num2 = request.getParameter("num2");

    double d1 = Double.parseDouble(num1);
    double d2 = Double.parseDouble(num2);

    double d3 = d1/d2;
    out.println("除法的结果为："+(d1/d2));

%>
</body>
</html>
